package com.sino.dataworks.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table(name = "PERIPHERY_SYS")
public class PeripherySys {

    @Id
    @Column(name = "SOURCE_SYS_NAME")
    private String sourceSysName;

    @Column(name = "RESPONSIBLE")
    private String responsible;

    @Column(name = "DATA_SOURCE")
    private String dataSource;

    @Column(name = "IS_SPECIAL")
    private Boolean isSpecial;

    @Column(name = "USE_IDENTIFICATION")
    private String useIdentification;

    @Column(name = "BATCH")
    private String batch;

    @Column(name = "IS_INCREMENT")
    private Boolean isIncrement;

    @Column(name = "PARTITION_CYCLE")
    private String partitionCycle;

    @Column(name = "PARTITION_FIELD")
    private String partitionField;

    @Column(name = "INCRE_CREATE_FIELD")
    private String increCreateField;

    @Column(name = "IP")
    private String ip;

    @Column(name = "PORT")
    private Integer port;

    @Column(name = "DATABASE")
    private String database;

    @Column(name = "P_USER")
    private String pUser;

    @Column(name = "PWD")
    private String pwd;

    @Column(name = "TABLE_NAME")
    private String tableName;

    @Column(name = "SYN_TYPE")
    private String synType;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATION_TIME")
    private Date creationTime;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "MODIFICATION_TIME")
    private Date modificationTime;

    @Column(name = "REMARK")
    private String remark;
}
